import Layout from '@/layout'
const router = {
  path: '/inventory',
  component: Layout,
  redirect: '/inventory/itemledger',
  name: 'inventory',
  alwaysShow: true,
  meta: {
    type: 'I',
    roles: ['2810', '2820'],
    title: '存货',
    icon: 'people'
  },
  children: [{
    path: 'itemledger',
    component: resolve => require(['@/views/accbook/itemledger'], resolve),
    name: 'itemledger',
    meta: {
      type: 'I',
      title: '存货总账',
      roles: ['2810']
    }
  }, {
    path: 'itemdetail',
    component: resolve => require(['@/views/accbook/itemdetail'], resolve),
    name: 'itemdetail',
    meta: {
      type: 'I',
      title: '存货明细账',
      roles: ['2820']
    }
  }]
}
export default router
